package com.yungu.swift.common.dao;

import com.github.miemiedev.mybatis.paginator.domain.PageBounds;
import com.github.miemiedev.mybatis.paginator.domain.PageList;

import com.yungu.swift.base.ResponseData;
import com.yungu.swift.base.mapper.IMapper;
import com.yungu.swift.common.model.dto.CommonSystemMessageDto;
import com.yungu.swift.common.model.param.AdminNoticeParam;
import org.apache.ibatis.annotations.Mapper;

import java.util.Map;

@Mapper
public interface CommonSystemMessageMapper extends IMapper<CommonSystemMessageDto> {

    /**
     * 用户查询未阅读的系统消息数
     *
     * @param map
     * @return
     */
    Integer sysUnreadNum(Map<String, Object> map);

    /**
     * 用户分页查询系统消息
     *
     * @param map
     * @return
     */
    PageList<CommonSystemMessageDto> sysQueryPage(Map<String, Object> map, PageBounds pageBounds);
}